package com.bulletelc.apollopre.entity;

import java.util.List;

/**
 * author: lhl
 * date: 2018/1/24
 * desc: 订单详情,
 */
public class OrderDetailBean {


    /**
     * id : 358
     * status : 1
     * code : 201801231357516648345916
     * customer_id : 4387
     * supplier_label : 子弹头总公司
     * sub_total : 298.00
     * discounted_total : null
     * grand_total : 298.00
     * state : 10
     * state_label : 待支付
     * trace_state : 0
     * tract_state_label : 暂无状态
     * comment_state : 10
     * comment_label : 未评论
     * updated_at : 2018-01-23 13:57:51
     * created_at : 2018-01-23 13:57:51
     * payment_label："微信支付"
     * user_name:"名"
     * phone:"13800138000"
     * address:"广东广州市天河区详细地址"
     * invoice_label:"暂无发票"
     * sales_order_items : [{"id":"645","product_name":"烟灰缸创意客厅家居饰品 仿铜新中式个性装饰原创卧龙烟灰缸","sku_label":"摆件规格:大号/摆件颜色:青色/摆件名称:卧龙","quantity":1,"market_price":149,"discount_price":0,"sale_price":149,"state":10,"refund_order_item_id":"0","product_images":{"icon":"http://img-apollo-pre.local.bulletelc.com/store/Product/118/9e/i/9e1febcee94da33860dcef4c65f1e00a.jpg","medium":"http://img-apollo-pre.local.bulletelc.com/store/Product/118/9e/m/9e1febcee94da33860dcef4c65f1e00a.jpg","original":"http://img-apollo-pre.local.bulletelc.com/store/Product/118/9e/9e1febcee94da33860dcef4c65f1e00a.jpg"}}]
     */

    private String id;
    private int status;
    private String code;
    private String customer_id;
    private String supplier_label;
    private String sub_total;
    private String discounted_total;
    private String grand_total;
    private int state;
    private String state_label;
    private int trace_state;
    private String tract_state_label;
    private int comment_state;
    private String comment_label;
    private String updated_at;
    private String created_at;
    private String user_name;
    private String phone;
    private String address;
    private String invoice_label;
    private String payment_label;
    private int invoice_type;

    private List<SalesOrderItemsBean> sales_order_items;

    // 砍价字段
    private int is_group;
    private String group_state_label;
    private int group_state;
    private int group_team_number;
    private int currently_group_member_number;
    private String install_price;
    private int enable_group;


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    private String type;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCustomer_id() {
        return customer_id;
    }

    public void setCustomer_id(String customer_id) {
        this.customer_id = customer_id;
    }

    public String getSupplier_label() {
        return supplier_label;
    }

    public void setSupplier_label(String supplier_label) {
        this.supplier_label = supplier_label;
    }

    public String getSub_total() {
        return sub_total;
    }

    public void setSub_total(String sub_total) {
        this.sub_total = sub_total;
    }

    public String getDiscounted_total() {
        return discounted_total;
    }

    public void setDiscounted_total(String discounted_total) {
        this.discounted_total = discounted_total;
    }

    public String getGrand_total() {
        return grand_total;
    }

    public void setGrand_total(String grand_total) {
        this.grand_total = grand_total;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getState_label() {
        return state_label;
    }

    public void setState_label(String state_label) {
        this.state_label = state_label;
    }

    public int getTrace_state() {
        return trace_state;
    }

    public void setTrace_state(int trace_state) {
        this.trace_state = trace_state;
    }

    public String getTract_state_label() {
        return tract_state_label;
    }

    public void setTract_state_label(String tract_state_label) {
        this.tract_state_label = tract_state_label;
    }

    public int getComment_state() {
        return comment_state;
    }

    public void setComment_state(int comment_state) {
        this.comment_state = comment_state;
    }

    public String getComment_label() {
        return comment_label;
    }

    public void setComment_label(String comment_label) {
        this.comment_label = comment_label;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getInvoice_label() {
        return invoice_label;
    }

    public void setInvoice_label(String invoice_label) {
        this.invoice_label = invoice_label;
    }

    public String getPayment_label() {
        return payment_label;
    }

    public void setPayment_label(String payment_label) {
        this.payment_label = payment_label;
    }

    public List<SalesOrderItemsBean> getSales_order_items() {
        return sales_order_items;
    }

    public void setSales_order_items(List<SalesOrderItemsBean> sales_order_items) {
        this.sales_order_items = sales_order_items;
    }

    public int getIs_group() {
        return is_group;
    }

    public void setIs_group(int is_group) {
        this.is_group = is_group;
    }

    public int getGroup_team_number() {
        return group_team_number;
    }

    public void setGroup_team_number(int group_team_number) {
        this.group_team_number = group_team_number;
    }

    public int getCurrently_group_member_number() {
        return currently_group_member_number;
    }

    public void setCurrently_group_member_number(int currently_group_member_number) {
        this.currently_group_member_number = currently_group_member_number;
    }

    public String getGroup_state_label() {
        return group_state_label;
    }

    public void setGroup_state_label(String group_state_label) {
        this.group_state_label = group_state_label;
    }

    public int getGroup_state() {
        return group_state;
    }

    public void setGroup_state(int group_state) {
        this.group_state = group_state;
    }

    public String getInstall_price() {
        return install_price;
    }

    public void setInstall_price(String install_price) {
        this.install_price = install_price;
    }

    public int getEnable_group() {
        return enable_group;
    }

    public void setEnable_group(int is_latest_group_barget_activity) {
        this.enable_group = enable_group;
    }

    public int getInvoice_type() {
        return invoice_type;
    }

    public void setInvoice_type(int invoice_type) {
        this.invoice_type = invoice_type;
    }

    public static class SalesOrderItemsBean {
        /**
         * order_item_id : 645
         * product_name : 烟灰缸创意客厅家居饰品 仿铜新中式个性装饰原创卧龙烟灰缸
         * product_id:"118"
         * sku_label : 摆件规格:大号/摆件颜色:青色/摆件名称:卧龙
         * product_sku_id: "1330",
         * quantity : 1
         * market_price : 149
         * discount_price : 0
         * sale_price : 149
         * state : 10
         * refund_order_item_id : 0
         * refund_order_count: 0
         * product_images : {"icon":"http://img-apollo-pre.local.bulletelc.com/store/Product/118/9e/i/9e1febcee94da33860dcef4c65f1e00a.jpg","medium":"http://img-apollo-pre.local.bulletelc.com/store/Product/118/9e/m/9e1febcee94da33860dcef4c65f1e00a.jpg","original":"http://img-apollo-pre.local.bulletelc.com/store/Product/118/9e/9e1febcee94da33860dcef4c65f1e00a.jpg"}
         */

        private String order_item_id;
        private String product_name;
        private String product_id;
        private String sku_label;
        private String product_sku_id;
        private int quantity;
        private double market_price;
        private double discount_price;
        private double sale_price;
        private int state;
        private String refund_order_item_id;
        private int refund_order_count;
        private ProductImagesBean product_images;

        //以下字段用于提交评论
        private String mark="0";//星星数量
        private String content="";//评论内容
        private String picture_path; //图片路径

        public int getRefund_order_count() {
            return refund_order_count;
        }

        public void setRefund_order_count(int refund_order_count) {
            this.refund_order_count = refund_order_count;
        }

        public String getPicture_path() {
            return picture_path;
        }

        public void setPicture_path(String picture_path) {
            this.picture_path = picture_path;
        }

        public String getOrder_item_id() {
            return order_item_id;
        }

        public void setOrder_item_id(String order_item_id) {
            this.order_item_id = order_item_id;
        }

        public String getProduct_name() {
            return product_name;
        }

        public void setProduct_name(String product_name) {
            this.product_name = product_name;
        }

        public String getSku_label() {
            return sku_label;
        }

        public void setSku_label(String sku_label) {
            this.sku_label = sku_label;
        }

        public String getProduct_id() {
            return product_id;
        }

        public void setProduct_id(String product_id) {
            this.product_id = product_id;
        }

        public String getProduct_sku_id() {
            return product_sku_id;
        }

        public void setProduct_sku_id(String product_sku_id) {
            this.product_sku_id = product_sku_id;
        }

        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }

        public double getMarket_price() {
            return market_price;
        }

        public void setMarket_price(double market_price) {
            this.market_price = market_price;
        }

        public double getDiscount_price() {
            return discount_price;
        }

        public void setDiscount_price(double discount_price) {
            this.discount_price = discount_price;
        }

        public double getSale_price() {
            return sale_price;
        }

        public void setSale_price(double sale_price) {
            this.sale_price = sale_price;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public String getRefund_order_item_id() {
            return refund_order_item_id;
        }

        public void setRefund_order_item_id(String refund_order_item_id) {
            this.refund_order_item_id = refund_order_item_id;
        }

        public ProductImagesBean getProduct_images() {
            return product_images;
        }

        public void setProduct_images(ProductImagesBean product_images) {
            this.product_images = product_images;
        }

        public String getMark() {
            return mark;
        }

        public void setMark(String mark) {
            this.mark = mark;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        @Override
        public String toString() {
            return "SalesOrderItemsBean{" +
                    "order_item_id='" + order_item_id + '\'' +
                    ", product_name='" + product_name + '\'' +
                    ", sku_label='" + sku_label + '\'' +
                    ", quantity=" + quantity +
                    ", market_price=" + market_price +
                    ", discount_price=" + discount_price +
                    ", sale_price=" + sale_price +
                    ", state=" + state +
                    ", refund_order_item_id='" + refund_order_item_id + '\'' +
                    ", product_images=" + product_images +
                    '}';
        }

        public static class ProductImagesBean {
            /**
             * icon : http://img-apollo-pre.local.bulletelc.com/store/Product/118/9e/i/9e1febcee94da33860dcef4c65f1e00a.jpg
             * medium : http://img-apollo-pre.local.bulletelc.com/store/Product/118/9e/m/9e1febcee94da33860dcef4c65f1e00a.jpg
             * original : http://img-apollo-pre.local.bulletelc.com/store/Product/118/9e/9e1febcee94da33860dcef4c65f1e00a.jpg
             */

            private String icon;
            private String medium;
            private String original;

            public String getIcon() {
                return icon;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public String getMedium() {
                return medium;
            }

            public void setMedium(String medium) {
                this.medium = medium;
            }

            public String getOriginal() {
                return original;
            }

            public void setOriginal(String original) {
                this.original = original;
            }
        }
    }


    @Override
    public String toString() {
        return "OrderDetailBean{" +
                "id='" + id + '\'' +
                ", status=" + status +
                ", code='" + code + '\'' +
                ", customer_id='" + customer_id + '\'' +
                ", supplier_label='" + supplier_label + '\'' +
                ", sub_total='" + sub_total + '\'' +
                ", discounted_total='" + discounted_total + '\'' +
                ", grand_total='" + grand_total + '\'' +
                ", state=" + state +
                ", state_label='" + state_label + '\'' +
                ", trace_state=" + trace_state +
                ", tract_state_label='" + tract_state_label + '\'' +
                ", comment_state=" + comment_state +
                ", comment_label='" + comment_label + '\'' +
                ", updated_at='" + updated_at + '\'' +
                ", created_at='" + created_at + '\'' +
                ", user_name='" + user_name + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", invoice_label='" + invoice_label + '\'' +
                ", sales_order_items=" + sales_order_items +
                '}';
    }
}
